package cn.qingyun.gis.modules.express.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 操作记录日志表实体对象
 * @Version: V1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("operation_log")
@ApiModel(value = "OperationLog对象", description = "OperationLog对象")
public class OperationLog implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 唯一id
     */
    @ApiModelProperty(value = "唯一id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 操作类型
     */
    @ApiModelProperty(value = "操作类型(0:应属入格/1:增加渠道)")
    @Excel(name = "操作类型", width = 15)
    private Integer logType;

    /**
     * 操作账号
     */
    @ApiModelProperty(value = "操作账号")
    @Excel(name = "操作账号", width = 15)
    private String logAccount;

    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间")
    @Excel(name = "操作时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 操作类型(0:快递/1:外卖/2:网约车/3:友商)
     */
    @ApiModelProperty(value = "操作类型(0:快递/1:外卖/2:网约车/3:友商)")
    @Excel(name = "操作类型(0:快递/1:外卖/2:网约车/3:友商/4:K12学校)", width = 15)
    private Integer operateType;

    /**
     * 业务id
     */
    @ApiModelProperty(value = "业务id")
    @Excel(name = "业务id", width = 15)
    private String operationId;

}
